home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / security / doc / clippings / 920303-01 < prev    next >
Encoding:
Internet Message Format  |  1992-03-20  |  1.7 KB

  1. From: jbuck@forney.berkeley.edu (Joe Buck)
  2. Newsgroups: alt.security
  3. Subject: Ownership by "bin" instead of by "root"
  4. Date: 3 Mar 1992 21:12:01 GMT
  5. Organization: University of California, Berkeley
  6. Message-ID: <p0q31INNr0o@agate.berkeley.edu>
  7. References: <1992Mar2.145559.3166@pool.info.sunyit.edu> <SEANEY.92Mar3131443@robios5.me.wisc.edu>
  8.  
  9. In article <SEANEY.92Mar3131443@robios5.me.wisc.edu>, seaney@robios.me.wisc.edu (Steve Seaney) writes:
  10. |> Question ( on a side note ) on our Sparcs Sun has set the /etc
  11. |> ownership to:
  12. |>      drwxr-sr-x  9 bin      staff        2048 Feb 28 11:10 etc/
  13.  
  14. |> Should this be changed?  Can I expect any problems when it is changed?
  15.  
  16. If you're in an NFS environment, I would recommend changing the owner of
  17. /etc to root.  The reason is that if someone cracks root on a machine
  18. that your machine "trusts" (because of /etc/hosts.equiv or for some other
  19. reason), that someone can say "su bin" and then your system will believe
  20. he should be treated as "bin" on your system, and he'll have the power
  21. to install anything he wants into the /etc/ directory.
  22.  
  23. But "root" is special: NFS, rsh, etc, treat root on some other system as
  24. "nobody" on your system, so that if someone cracks root on a system you
  25. trust, he's still only a generic normal user on your system.  This'll at
  26. least slow a good cracker down a bit.
  27.  
  28. Conclusion: if you use NFS, rsh, rlogin, rcp, etc., then all system-critical
  29. files and directories (/etc, /bin, /usr/bin, etc, and everything in them)
  30. should be owned by root and writable only by root.  The habit of having
  31. "bin" own things, or having a special "staff"/"wheel" group that could
  32. modify things, comes from pre-NFS days and it's no longer safe.
  33.  
  34. -- 
  35. Joe Buck    jbuck@ohm.berkeley.edu
  36.  
  37.